
function sleep(time) {
  return new Promise(resolve =>{
    setTimeout(function () {
      resolve(time/1000+"秒");
    },time);
  })
}

async function test() {
  var s = await sleep(2000);
  var s1 = await sleep(3000);
  return [s,s1];
}
test().then(r=>console.log(r));
